//
// Created by Biter on 2019/10/16.
//

#include "../includes/Person.h"

Person::Person() {
    mName = "biter";
    mAge = 26;
    std::cout<<"默认构造函数"<<std::endl;
}

Person::Person(char *name, int age) {
    mName = name;
    mAge = age;
    cout << "Hello  " << mName << endl;
}

Person::Person(int age) {
    mAge = age;
}

void Person::setName(char *name) {
    mName = name;
}

void Person::setAge(int age) {
    mAge = age;
}

int Person::getAge() {
    return mAge;
}

char *Person::getName() {
    return mName;
}

Person::~Person() {
    cout << "Bey  " << mName << endl;
}